#include "about.h"
#include "ui_about.h"
#include <QtGui/QDoubleValidator>
#include <QtCore/QDebug>



About::About (QWidget *parent) :
	QDialog (parent),
	ui (new Ui::About)
{
	ui->setupUi				(this);
	ui->aboutQt->setIcon	(QIcon (":/images/qt-logo.png"));
	ui->close->setIcon		(QIcon::fromTheme ("window-close"));
	setWindowTitle			(tr ("À propos de Dicodor"));
	setWindowIcon			(Config::appIcon());

	ui->version->setText (tr("%1 version %2").arg (Config::appName ()).arg (Config::appVersion ()));
	ui->tabWidget->setCurrentIndex (0);

	connect (ui->close,
			 SIGNAL(clicked()),
			 this,
			 SLOT(close()));

	connect (ui->aboutQt,
			 SIGNAL(clicked()),
			 qApp,
			 SLOT(aboutQt()));

}

About::~About ()
{
	delete ui;
}

